#ifndef MENUMANAGER_H
#define MENUMANAGER_H

#include "Entity/DictData.h"
#include "api/systemManager/menumanagerapi.h"
#include <QObject>
#include <ui_index.h>

class MenuManager : public QObject
{
    Q_OBJECT
public:
    explicit MenuManager(Ui::Index *ui,QObject *parent = nullptr);

signals:

private:
    Ui::Index *ui;
    MenuManagerApi menuManagerApi;
    QList<DictData> sys_normal_disable;
    QList<DictData> sys_show_hide;
    QList<Menu> menuList;
    QString svg;
    QString suffix;
    bool isExpand;

    void init();
    void getType();
    void getList();
    void initTree();
    void setChildTree(QTreeWidgetItem *item);

};

#endif // MENUMANAGER_H
